import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '@/pages/MainPage'
import IntegralPage from '@/pages/IntegralPage'
import CouponsPage from '@/pages/CouponsPage'
import StoredValuePage from '@/pages/StoredValuePage'
import MaintenanceDeclarationPage from '@/pages/MaintenanceDeclarationPage'
import EvaluatePage from '@/pages/EvaluatePage'
import SettingPage from '@/pages/SettingPage'
import ReceiptPage from '@/pages/ReceiptPage'
import LoggingPage from '@/pages/LoggingPage'
import BindingPage from '@/pages/BindingPage'

Vue.use(Router)

export default new Router({
  base: 'member',
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'MainPage',
      component: MainPage,
      meta: {
        title: '会员中心'
      }
    },
    {
      path: '/integral',
      name: 'IntegralPage',
      component: IntegralPage,
      meta: {
        title: '积分查询'
      }
    },
    {
      path: '/coupons',
      name: 'CouponsPage',
      component: CouponsPage,
      meta: {
        title: '优惠券'
      }
    },
    {
      path: '/storedValue',
      name: 'StoredValuePage',
      component: StoredValuePage,
      meta: {
        title: '储值记录'
      }
    },
    {
      path: '/ receipt',
      name: 'ReceiptPage',
      component: ReceiptPage,
      meta: {
        title: '发票列表'
      }
    },
    {
      path: '/maintenance_declaration',
      name: 'MaintenanceDeclarationPage',
      component: MaintenanceDeclarationPage,
      meta: {
        title: '维修申报'
      }
    },

    {
      path: '/evaluate',
      name: 'EvaluatePage',
      component: EvaluatePage,
      meta: {
        title: '发表评价'
      }
    },
    {
      path: '/setting',
      name: 'SettingPage',
      component: SettingPage,
      meta: {
        title: '设置'
      }
    },
    {
      path: '/logging',
      name: 'LoggingPage',
      component: LoggingPage,
      meta: {
        title: '跳转',
        white: true
      }
    },
    {
      path: '/binding',
      name: 'BindingPage',
      component: BindingPage,
      meta: {
        title: '绑定',
        white: true
      }
    }
  ]
})
